import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column, PrimaryGeneratedColumn } from 'typeorm';

@EntityModel('customer_favorite')
export class CustomerFavoriteEntity extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ comment: '用户 id' })
  customerId: number;

  @Column({ comment: '商品 id' })
  productId: number;
}
